﻿@model MvcApplication6.Models.NewModel
@using MvcApplication6.Models
@using MvcPaging
<div class="pr-head"><span>Chi tiết tin tức</span></div>
    <!-- MODULE Home Featured Products -->
       <div class="left_hotnew">
        @if (Session["checkLoginAbcuser"] != null)
        { 
         @*<a  href="/Admin/AddNews?EventId=@Model.Event.Id">Sửa||</a> *@
             @Html.ActionLink("|Sửa",
                "AddNews",   // <-- ActionMethod
                "Admin",  // <-- Controller Name.
                new
                {
                    EventId = @Model.Event.Id
                }, // <-- Route arguments.
                null
                )

        @Ajax.ActionLink(
            "Xóa",
            "DeleteNew",
            new
            {
                Id = @Model.Event.Id,
                page = 1,
                IdCe = @Model.Event.IdCe

            },
            new AjaxOptions
            {
                HttpMethod = "GET",
                InsertionMode = InsertionMode.Replace,
                UpdateTargetId = "listProduct",
                OnBegin = "myonbegin",
                OnSuccess = "myonsuccess",
                OnFailure = "myonfailure"
            }
            )
        }


       	 <div class="header_titlechannel">@Model.Event.Title </div>


         @*<span class="date">@Model.Event.StartDate</span>*@

         <div class="share" style="margin-top:15px;">
            <span class='st_facebook_hcount' displayText='Facebook'></span>
            <span class='st_twitter_hcount' displayText='Tweet'></span>
            <span class='st_email_hcount' displayText='Email'></span>
        </div><br>
		 <p>
           @Html.Raw(System.Web.HttpUtility.HtmlDecode(Model.Event.Content))
         </p>
        <br> <br>
		<div class="fb-comments" data-href="http://aptechpro.vn/" data-width="450px" data-numposts="5" data-colorscheme="light"></div>
		<div class="clear"></div>       
            
            @if (Model.EventListModel != null)
            {
            <div class="sale">
            <p class="new-order">Các tin khác:</p>    
            <ul class="list">
            
                @foreach (var listTitle in Model.EventListModel)
                {
            
                    <li>
                       @* @Ajax.ActionLink(
                             listTitle.Title,
                            "NewDetail",
                            new
                            {
                                Id = listTitle.Id
                            },
                            new AjaxOptions
                            {
                                HttpMethod = "GET",
                                InsertionMode = InsertionMode.Replace,
                                UpdateTargetId = "listProduct",
                                OnSuccess = "myonsuccessCallServer"
                            }
                            )*@
                         <a href="/Home/NewDetail/@listTitle.Title.Replace(" ", "")/@listTitle.Id">
                                @listTitle.Title
                            </a>
                    </li>
                }
            
            

            </ul>
            </div><!--end. sale-->
            }

      </div><!--end. left_hotnew-->
    <!-- /MODULE Home Featured Products --><!-- MODULE Home Featured Products -->
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript" src="http://s.sharethis.com/loader.js"></script>
<script>
    var options = { "publisher": "f00b3124-03b3-4a4d-b8ff-22f8b2cd4dc2", "position": "left", "ad": { "visible": false, "openDelay": 5, "closeDelay": 0 }, "chicklets": { "items": ["facebook", "twitter", "linkedin", "pinterest", "email", "sharethis"]} };
    var st_hover_widget = new sharethis.widgets.hoverbuttons(options);
</script>